
#pragma once
#include <functional>

using task_t =std::function<void()>;

void DownLoad()
{
    std::cout<<"Download"<<std::endl;
}

class Task
{
public:
    Task(int x,int y)
        :_x(x),_y(y),_result(0)
    {}

    ~Task()
    {

    }

    void Execute()
    {
        _result=_x+_y;
    }

    int GetX()
    {
        return _x;
    }

    int GetY()
    {
        return _y;
    }

    int GetResult()
    {
        return _result;
    }

private:
    int _x;
    int _y;
    int _result;
};